package org.person.gift.service;

import org.person.gift.domain.GoodsSpu;
import com.baomidou.mybatisplus.service.IService;
import org.person.gift.dto.GiftOnsaleMsgQueueDto;

import java.util.List;

/**
 * <p>
 * spu表 服务类
 * </p>
 *
 * @author MaxPeng
 * @since 2024-02-15
 */
public interface IGoodsSpuService extends IService<GoodsSpu> {

    String onsale(List<Long> ids);

    String offsale(List<Long> ids);

    boolean executeOnsaleLocalTransactionOpr(List<GiftOnsaleMsgQueueDto> spuOnsaleDtos);

    boolean checkExsitOnsaled(Long spuNo);

    boolean executeOffsaleLocalTransactionOpr(List<Long> offsaleIds);

    boolean checkExsitOffsaled(List<Long> offsaleIds);
}
